package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户数据权限绑定
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpDataPremBind extends Model<JbdpDataPremBind> {

    private static final long serialVersionUID=1L;

    /**
     * 数据权限ID
     */
    @TableId("DPU_ID")
    private String dpuId;

    /**
     * 数据类型代码
     */
    @TableField("DATA_TYPE_CODE")
    private String dataTypeCode;

    /**
     * 业务数据ID
     */
    @TableField("DATA_ID")
    private String dataId;

    /**
     * 绑定ID
     */
    @TableField("BIND_ID")
    private String bindId;

    /**
     * R=角色
            U=用户
     */
    @TableField("BIND_TYPE")
    private String bindType;


    public String getDpuId() {
        return dpuId;
    }

    public JbdpDataPremBind setDpuId(String dpuId) {
        this.dpuId = dpuId;
        return this;
    }

    public String getDataTypeCode() {
        return dataTypeCode;
    }

    public JbdpDataPremBind setDataTypeCode(String dataTypeCode) {
        this.dataTypeCode = dataTypeCode;
        return this;
    }

    public String getDataId() {
        return dataId;
    }

    public JbdpDataPremBind setDataId(String dataId) {
        this.dataId = dataId;
        return this;
    }

    public String getBindId() {
        return bindId;
    }

    public JbdpDataPremBind setBindId(String bindId) {
        this.bindId = bindId;
        return this;
    }

    public String getBindType() {
        return bindType;
    }

    public JbdpDataPremBind setBindType(String bindType) {
        this.bindType = bindType;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.dpuId;
    }

    @Override
    public String toString() {
        return "JbdpDataPremBind{" +
        "dpuId=" + dpuId +
        ", dataTypeCode=" + dataTypeCode +
        ", dataId=" + dataId +
        ", bindId=" + bindId +
        ", bindType=" + bindType +
        "}";
    }
}
